package com.lej.dataservice.club.http.base

import com.lej.core.BuildConfig

object HttpUrl {
    const val BASE_URL = BuildConfig.BASE_URL //网络请求根地址
    private const val BASE_WEB_URL = "https://app-landscape.dayou.art/"
    private const val BASE_PRE_WEB_URL = "https://pre-app-landscape.dayou.art/"

    private const val BaseVerticalUrl = "https://dayou.art/"
    private const val BaseVerticalPreUrl = "https://pre.dayou.art/"
//    private const val BASE_WEB_URL = "https://pre-app-landscape.dayou.art/"
//    private const val BASE_WEB_URL = "http://10.8.82.22:8081/"
//    private const val BASE_WEB_URL = "http://192.168.8.14:8082/"

    //隐私协议地址
    val PERMISSION_URL = "${getWebUrl()}agreement/privacy?close=1"
    //用户协议地址
    val USER_AGREEMENT_URL = "${getWebUrl()}agreement/agreement?close=1"
    //文创协议地址
    val TRANSFORM_PROTOCOL_URL = "${getWebUrl()}agreement/purchase?close=1"
    //用户权限地址
    val TRANSFORM_test1_URL = "${getWebUrl()}agreement/appRoot?close=1"
    //直播协议
    val TRANSFORM_LIVE_URL = "${getWebUrl()}agreement/live?close=1"
    //元晶协议
    val TRANSFORM_MONEY_URL = "${getWebUrl()}agreement/yj_agreement?close=1"

    //反馈平台地址
    val FEED_BACK_URL = "https://support.qq.com/product/464157"

    //房间详情
    val ROOM_DETAIL_URL = "${getWebUrl()}pages/works_detail/works_detail"
    //提现
    val WITH_DRAW_URL = "${getWebUrl()}subpages/pages/withDraw/withDraw"
    //实名认证
    val AUTHENTICATION_URL = "${getWebUrl()}subpages/pages/authentication/authentication"

    //订单列表
    val MY_ORDER_HISTORY_URL = "${getWebUrl()}order/list"

    //nft详情分享链接
    val NFT_DETAIL = "${getVerticalWebUrl()}pages/works_detail/works_detail?"

    //nft转让
    val NFT_TRANSFER = "${getVerticalWebUrl()}pages/receive_collection/receive_collection"

    //nft购买页
    val NFT_BUY = "${getWebUrl()}activity/vip/buy"

    //nft使用页
    val NFT_USE = "${getWebUrl()}activity/vip/quanyi"

    //我的求购
    val MY_WANT = "${getWebUrl()}qiugouNotify"

    //碎片合成
    val MY_COMPOUND = "${getWebUrl()}CraftingTable"

    //铸造机
    val CREATE_NFT_URL_TEST = "https://casting-test.dayou.art/login"

    //正式环境铸造机
    val CREATE_NFT_URL = "https://casting.dayou.art/login"

    //发现
    val FIND_URL = "${getWebUrl()}pages/index/index"
    //钱包页面
    val MY_COLLECTION_URL = "${getWebUrl()}pages/my_collection/my_collection"

    //照妖镜地址
    const val FACE_MIRROR_URL = "https://h5.pengapp.cn/ai/mirror"

    //测颜值地址
    const val FACE_SCORE_URL = "https://h5.pengapp.cn/ai/grade"

    //支付协议地址
    const val PAY_AGREEMENT_URL = "https://h5.pengapp.cn/agreement/pn-pay-agreement"

    //vip充值协议地址
    const val VIP_AGREEMENT_URL = "https://h5.pengapp.cn/agreement/pn-vip-agreement"

    //邀请好友页面
    const val SHARE_INVITE_URL = "https://h5.pengapp.cn/share/invitation-code"

    //反馈页面
    const val USER_FEEDBACK_URL = "http://h5.pengapp.cn/questions/user-feedback"

    private fun getWebUrl() = if(BuildConfig.IS_RELEASE) BASE_WEB_URL else BASE_PRE_WEB_URL
    private fun getVerticalWebUrl() = if(BuildConfig.IS_RELEASE) BaseVerticalUrl else BaseVerticalPreUrl

}